package web.common.internal.jdo.config;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Jin Zheng
 * @since 1.0 2022-01-12
 */
@Getter
@Setter
public class DataSourceProperties {
    private String url;
    private String username;
    private String password;

    private int initialSize = 1;
    private int minIdle = 1;
    private int maxActive = 20;
    private int maxWait = 6000;

    private int timeBetweenEvictionRunsMillis = 60000;
    private int minEvictableIdleTimeMillis = 600000;
    private int maxEvictableIdleTimeMillis = 900000;

    private String validationQuery;
    private boolean testWhileIdle = true;
    private boolean testOnBorrow = false;
    private boolean testOnReturn = false;
    private boolean keepAlive = true;
    private boolean poolPreparedStatements = false;
    private boolean asyncInit = true;

    private String filters = "stat";

	public DataSourceProperties() {
	}

}
